package ModelImplementation

import "time"

type SalesReceipt struct {
	itsSaleDate time.Time
	itsAmount float64
}

func NewSalesReceipt(saleDate time.Time, amount float64) SalesReceipt{
	return SalesReceipt{
		itsSaleDate : saleDate,
		itsAmount : amount,
	}
}

func (s *SalesReceipt) GetAmount() float64 {
	return s.itsAmount
}

func (s *SalesReceipt) GetSaleDate() time.Time {
	return s.itsSaleDate
}
